﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common.EntityValidation
{
    public class FutureDateTimeAttribute : RegExValidationAttribute  //未来时间
    {
        public int Year { get; set; }
        public int Month { get; set; }
        public int Day { get; set; }
        public FutureDateTimeAttribute()
        {
            // string formartter=
            string datenow = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            RegEx = "";
            ErrorMessage = "不合法的时间";
        }
    }
}
